package com.dingwen.treasure.core.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 任务视图
 *
 * @author dingwen
 * @date 2022/11/07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class TaskVo implements Serializable {

    public static final String TASK_STATUS = "taskStatus";
    public static final String EXPAND = "expand";
    public static final String MSG = "msg";
    public static final String SUC_NUM = "sucNum";
    public static final String FAIL_NUM = "failNum";

    /**
     * 任务状态: 0  无 1 进行中  2 失败  3 成功
     */
    private String taskStatus;

    /**
     * 拓展字段 ｜ 保留字段
     */
    private String expand;

    /**
     * 任务key
     */
    private String taskKey;

    /**
     * 消息
     */
    private String msg;


    /**
     * 总数
     */
    private Integer totalNum;
    /**
     * 成功数
     */
    private Integer sucNum;
    /**
     * 失败数量
     */
    private Integer failNum;


    private static final long serialVersionUID = 7787410938066125856L;
}
